PS/2 Keyboard and arduino problem

It sounds like you are having problems with the clock staying in synch. Do you have a complete schematic you can post. AND obviously your code.