redundant code, logical key mapping and added a texture to see how it works