Added keyboard input, fixed bug in DrawPixel method