Bug 870603 - [MMS] Multi-recipient: completing # or auto-search enter with ; or ENTER erases content - r=gnarf37

Looks like the event constructor was renamed from KeyboardEvent to KeyEvent at some point. Instead of relying on an instanceof check, just test the event.type

https://bugzilla.mozilla.org/show_bug.cgi?id=870603
Signed-off-by: Rick Waldron <waldron.rick@gmail.com>