That is the case for everyone with a standard keyboard. There is no key for "10" or more.
Have you tried debugging it? Check to see if the case is actually being executed with a client or server print. Otherwise, it's hard to see what is going on without the full code.