Check MDN for
basic usage of canvas
.
press a key or click a mouse button