love.keyboard_isDown - oblerion/love2d.js GitHub Wiki

call

if(love.keyboard_isDown(key)){...}

parameter

  • key : string of key

return

true if down, false if not

what is do

testing if key is press