> > Isn't it also best to disable interrupt 1 in between writing and reading? Normally it is better, but I never use it and it doesn't cause trouble to me. You can also test the keys in the interrupt 1 handler if you want to be sure.