PEGASUS: Fix bad cast that destroys the InputHandler vtable

Thanks to LordHoto for his assistance in tracking this nonsense down.