Both methods result in dropping through the floor.
For debug purpose, when I press F3, the ship accelerates. The player drops through the floor when I keep pressing F3 for over seconds. At the begining everything works fine but after a while the player drops through the floor. Looking up, I found the z speed remains the same with the ship but the player drops through.