Lg magic remote keycode

I have Beelink Mini MX3 (amlogic s905) and I wont to use Lg magic remote with that box.
How can I do that?