Limit keyboard input on calculator