keyPressed

Separated if into a different keyPressed again