I have simpy question..
How can take a state key (keydown, keyup) in onkeypress in Javascript?
document.onkeypress = function()
{
  console.log(/* STATE (down or up sometihn like this*/)
}
				I have simpy question..
How can take a state key (keydown, keyup) in onkeypress in Javascript?
document.onkeypress = function()
{
  console.log(/* STATE (down or up sometihn like this*/)
}
				
                        
And if you have 2 functions? (up and down)