how to call function on every keypress in jquery

Solutions on MaxInterview for how to call function on every keypress in jquery by the best coders in the world