Shortcut to maximize or move window conditionally

Hi,

I'm used to moving windows using shortcuts in Microsoft Windows. I'm wondering if there's a way to replicate this behavior in BTT:

if window is maximized
maximize to top half
else
maximize (full screen)

Imprint | Privacy Policy