also how do you dive into ceilings?
You should me able to change your dive direction with the arrow keys: so, to dive in ceilings you can press "up" and then X. The current dive direction is also indicated by the cursor next to the character.
Also, in order to dive out of floors, you can do the same, that is, chose a direction towards outside of the floor and press X :)