cleaning up key presses and styles