Move createKeyEvent to a static function

This function is static already, but currently marked as part of
InputDispatcher. Move it to cpp only.

Bug: 175593831
Test: atest inputflinger_tests
Change-Id: I4e7aedc84526202382da0dd3c478cb0a7b3409d7
2 files changed