What do you mean when two key trigger at one time? If you press up,down,right, or left works fine. If you press 2 key at same time like left and right it will not work because, trigger is meant for only one key and not two. Please explain which two key? Other wise there is no problem with this code