lmccart/p5.js — pull request #379 by crhallberg (2014-09-24 04:08:21+00:00)
Title: Set key and keyCode for keyReleased

keyReleased was returning 0 in Firefox and duplicate keyCodes in Chrome. This fixes the problem by setting key and keyCode right before keyReleased is called, as per the source comments and Processing documentation.