Bug 1014418 - Dispatching hardware button event in Gaia

https://bugzilla.mozilla.org/show_bug.cgi?id=1014418
Let's move keydown up to reveal the ordering: beforekeydown, keydown, afterkeydown (though the test is not guaranteed to be executed in specific order.)