KeyListener with if statements

This is very crudely done.