How to Gently float up?

I am working on a game my senior project where I need to make a game object that the character controls float into the air to a set height at the most when you move it in any direction but falls slowly back to earth. I was attempting to use the move script in character controller:

    /// This script moves the character controller forward
/// and sideways based on the arrow keys.
/// It also jumps when pressing space.
/// Make sure to attach a character controller to the same game object.
/// It is recommended that you make only one call to Move or SimpleMove per frame.
var speed = 6.0;
var jumpSpeed = 8.0;
var gravity = 20.0;

private var moveDirection =;

function FixedUpdate() {
var controller : CharacterController = GetComponent(CharacterController);
if (controller.isGrounded) {
// We are grounded, so recalculate
// move direction directly from axes
moveDirection = Vector3(Input.GetAxis("Horizontal"), 0,
moveDirection = transform.TransformDirection(moveDirection);
moveDirection *= speed;

if (Input.GetButton ("Jump")) {
moveDirection.y = jumpSpeed;

// Apply gravity
moveDirection.y -= gravity * Time.deltaTime;

// Move the controller
controller.Move(moveDirection * Time.deltaTime);

By altering the line of code here:

moveDirection = Vector3(Input.GetAxis("Horizontal"), 0,

By replacing the 0 with another number, but all that did is make it bounce upon hitting the ground.

Are there any suggestions that can help me?

This happens because the moving code is inside a check for controller.isGrounded. So your moving code is only executed when your character touches the ground.