Added keyboard input for zero, one, and enter keys.