How to `Prone` character using C++?

How to use C++ to prone my character using “z” key bindings?