Working on processing keyboard input; partially working