I have an array with keyboard combinations and this should validate to press keys exactly in the order of the array example
var listkeys = ['left', 'right', 'bottom', 'top'];
if(validate key){
continue
}
the order of the array is important if they are wrong by pressing in the order of the arrows then as I continued not more and sends you an error
I am a newbie in javascript I hope I can help enormously grateful