Fixes in media plugin. Example enhanced for input box so it could be tested with keyboard.
Small optimization.