How can I detect if my character is falling up or down?

You can follow the macro I prepared for Jump, Falling and Ground in the video below.