Hi RWhittingham,
The following tutorial covers exactly what you’re attempting to do (Although it uses the F key).
The particular part you would be looking for would be the ‘Making a Usable Door’ section near the bottom.
I hope this helps! Have a nice day,