Default How to port an app

Is that possible to port an app from android 4.1.2 and make it work on 4.2.2 ( Keyboard app ) ?

and if it is possible how can i do that ?

any help PLZ