improved key-input handling and flipping the world works as a toggle now