added keyboard input stuff

added keyboard input stuff