LWJGL 3 uses GLFW for input so you can check those docs.
GLFW callbacks in LWJGL work by extending one of the callback classes / interfaces or passing lambda functions. See for example the getting started guide.