Refactor: spaceKeyCode is no longer used