Is it legal to use this macro

I want to create a macro that looks like this: pushing the keyboard key “down arrow”, macro delay, “enter”.

Is this legal?